<ng-template #suffixTemplate>
  <i
        nz-icon
        nz-tooltip
        class="ant-input-clear-icon"
        nzTheme="fill"
        nzType="close-circle"
        *ngIf="dataAAC001"
        (click)="dataAAC001 = null"
      ></i>
      
  </ng-template>
  <ng-template #suffixIconButton >
    <i *ngIf="!isLoad" nz-icon nzType="search" (click)="onclick(grsy.value)"></i>
      <i *ngIf="isLoad" nz-icon nzType="loading" class="loading-icon"></i>
  </ng-template>

<nz-autocomplete #auto>
  <ng-container *ngFor="let option of options">
      <nz-auto-option  [nzValue]="option.TEXT" [nzLabel]="option.TEXT" >{{ option.TEXT }}
      </nz-auto-option>
  </ng-container>

</nz-autocomplete>
<nz-input-group nzCompact [nzSuffix]="suffixTemplate"  [nzAddOnAfter]="suffixIconButton">
  <input type="hidden" nz-input [(ngModel)]="dataAAC001"  />
  <input type="text" nz-input #grsy type="text" nz-input  [(ngModel)]="dataAAC001" 
  (keyup)="onInput($event,grsy.value)" placeholder="输入身份证号、姓名或社保编号，回车搜索"
  (ngModelChange)="change($event)" 
  [nzAutocomplete]="auto"/>
  
</nz-input-group>
